﻿@model PaymentHelper.Methods.PaypalDirect.Models.PaymentModel
           
@*{
Khi người dùng chọn thanh toán với PaypalDirect thì sẽ chèn View PaymentInfo.cshtml vào và gán các thông số này vào
Order của processPaymentRequest, sau đó gọi hàm processPaymentRequest
}*@

<table>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.CreditCardNumber"]
        </td>
        <td>
            @Html.EditorFor(model => model.CreditCardNumber, new { autocomplete = "off" })
        </td>
        <td>
            @Html.ValidationMessageFor(model => model.CreditCardNumber)
        </td>
    </tr>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.CreditCardType"]
        </td>
        <td>
            @Html.DropDownList("CreditCardType",Model.ListCard)
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.CardOwnerName"]
        </td>
        <td>
            @Html.EditorFor(model => model.CardOwnerName, new { autocomplete = "off" })
        </td>
        <td>
            @Html.ValidationMessageFor(model => model.CardOwnerName)
        </td>
    </tr>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.ExpMonth"]
        </td>
        <td>
            @Html.EditorFor(model => model.ExpMonth, new { autocomplete = "off" })
        </td>
        <td>
            @Html.ValidationMessageFor(model => model.ExpMonth)
        </td>
    </tr>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.ExpYear"]
        </td>
        <td>
            @Html.EditorFor(model => model.ExpYear, new { autocomplete = "off" })
        </td>
        <td>
            @Html.ValidationMessageFor(model => model.ExpYear)
        </td>
    </tr>
    <tr>
        <td>
            @ViewBag.Resources["PaypalDirect.CreditCardCVV2"]
        </td>
        <td>
            @Html.EditorFor(model => model.CreditCardCVV2, new { autocomplete = "off" })
        </td>
        <td>
            @Html.ValidationMessageFor(model => model.CreditCardCVV2)
        </td>
    </tr>      
</table>
